package com.sweet.net.vo;

import com.sweet.net.enums.HttpMethod;
import com.sweet.net.enums.ReturnType;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * http请求
 *
 * @author 李密
 * @date 2018/4/16 14:35
 */
@Getter
@Setter
public class HttpRequest {
    private Map<String, String> headers;    //请求头部
    private HttpMethod method;              //请求方法
    private String url;                     //请求地址
    private String body;                    //body数据
    private BasicAuthorization basicAuth;   //基础认证,null表示不认证
    private int timeout;                    //超时时间，单位毫秒，<=0表示不限超时时间
    private ReturnType returnType = ReturnType.CONTENT;          //返回类型，默认返回内容
    private Boolean isVerifySSL = true;    //是否验证SSL证书，默认验证
}